package com.ysynzehao.dubbo.order;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import com.ysynzehao.dubbo.order.model.Order;
import com.ysynzehao.dubbo.service.order.OrderService;

@RunWith(SpringJUnit4ClassRunner.class)  
@ContextConfiguration(locations={"classpath:application-provider.xml"})  
public class ApplicationStart {
	
	@Autowired
	private OrderService orderService;
	
	@Test
	public void getUser() throws Exception {
		Order order = orderService.getOrder(1l);
		System.out.println(order);
		System.in.read();
	}

}
